package com.cv.system.controller.platform.auth.vo;

import com.cv.framework.common.validation.Password;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * 视频平台 - 注册 Request VO
 *
 * @author Charles_XDXD
 */
@Data
@Schema(description = "视频平台 - 注册 Request VO")
public class PlatformRegisterReqVO {

    /**
     * 用户帐号
     */
    @Schema(description = "用户帐号", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin")
    @NotEmpty(message = "用户帐号不能为空")
    private String username;

    /**
     * 用户密码
     */
    @Schema(description = "用户密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
    @NotEmpty(message = "用户密码不能为空")
    @Password
    private String password;

    /**
     * 邮箱
     */
    @Schema(description = "用户邮箱", example = "xxx@qq.com")
    @Email(message = "邮箱格式不正确")
    @Size(max = 50, message = "邮箱长度不能超过 50 个字符")
    private String email;

}
